package profile.logic;

import java.util.ArrayList;

import testrunner.core.TestRunner;

import profile.data.CodeInjecion;
import profile.data.RaportProfile;
import profile.ui.TesterDecision;

public class ProfileTests {
	
	int startSize;
	
	public void run(ArrayList<String> codeInjection, int codeInjectionSize) {
		String testerDecision = getTestDecisiosFromUser();
		switch(testerDecision){
		case "codeInjections":
			CodeInjecion codeInjecion = new CodeInjecion();
			codeInjecion.runTests(codeInjection, codeInjectionSize);
			break;
		case "raportProfile":
			RaportProfile raportProfile = new RaportProfile();
			raportProfile.runTests(codeInjection, codeInjectionSize);
			break;
		default:
			TestRunner testRunner = new TestRunner();
			try {
				testRunner.run();
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
	}

	private String getTestDecisiosFromUser() {
		TesterDecision testsDecision = new TesterDecision();
		String decision = testsDecision.getTesterDecision();
		return decision;
	}
	


}
